package com.feib.stms.action;



import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

import com.feib.stms.model.UploadFile;




/**
 * 申購款資料取消
 * @author Jeff Gu
 *
 */
public class Stms3004ActionBean  extends BaseDoUploadFileActionbean{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 219815614699812190L;
	/**
	 * 預設頁面,取消頁面直接顯示待取消資料
	 */
	private static final String DEFAULT_JSP = "/WEB-INF/views/stms3004/stms3004.jsp";
	
	
	public Stms3004ActionBean() {
		super();
		super.fileFormats = new ArrayList<String>();
		super.fileFormats.add(getUploadFileFormat());
		super.actions=getActions();
		super.todoListMenuItemPk=getTodoListMenuItemPk();
		super.deleteFileStatus=getDeleteStatus();
		super.fileStatus=getFileStatus();
	}	

	@Override
	protected String getDefaultPage() {
		return DEFAULT_JSP;
	}
	
	@Override
	public String getUploadFileFormat() {
		return UploadFile.UPLOAD_FILE_PURCHASE_PAYMENT;
	}

	@Override
	public String getDownloadFileName() {
		return "申購明細表_"+yyyyMMddHHmmSS.format(Calendar.getInstance().getTime())+".xls";
	}

	@Override
	public List<Integer> getFileStatus() {
		List<Integer> fileStatus=new ArrayList<Integer>();
		fileStatus.add(60);//60: 已放行/待預約(即全數放行通過)
		return fileStatus;
	}

	@Override
	public List<String> getActions() {
		/* 取消沒有次數門檻,直接取消 */
		return null;
	}

	@Override
	public Long getTodoListMenuItemPk() {
		/* 申購款資料取消 沒有下一階段  */
		return new Long(0);
	}

	@Override
	public Integer getDeleteStatus() {
		/* 70: 已取消(即放行後反悔，要刪除；明細應註記為刪除) */
		return 70;
	}

}
